// packageH/signIndexPlu/signPage.js
const app = getApp();
Page({

  data: {
    url: '',
  },

  onLoad: function (options) {
    // `https://dev1.yunzmall.com/addons/yun_shop/?menu#/${'signPagePlu/99'}?i=2`
    let url = "";

    if(options.url) {
      // 认证页面跳转
      url = options.url;
    }else if(options.id){
      url = app.globalData.host + `/addons/yun_shop/?menu#/signPagePlu/${options.id}?isMinApp=1&i=` + app.globalData.uniacid;
      let wx_token = wx.getStorageSync('wx_token');
      url = `${url}&min_token=${wx_token}`;//自营商城免登录
    }else {
      wx.navigateBack({
        delta: 1,
      });
    }

    this.setData({
      url: url
    });
    console.log(this.data.url);
  },


  onHide: function () {

  },

  /**
	 * 生命周期函数--监听页面卸载
	 */
  onUnload: function () {

  },

});
